﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using BrnMall.Core;
using PetaPoco;

namespace BrnMall.Manager.Domain.Store
{
    /// <summary>
    /// 积分配置
    /// </summary>
    [TableName("bma_CreditConfig")]
    public class CreditConfigInfo
    {
        public int Id { get; set; }
        /// <summary>
        /// 店铺ID
        /// </summary>
        public int StoreId { get; set; }

        /// <summary>
        /// 支付积分名称
        /// </summary>
        public string PayCreditName { get; set; }

        /// <summary>
        /// 支付积分价格(单位为100个)
        /// </summary>
        public int PayCreditPrice { get; set; }

        /// <summary>
        /// 每天最大发放支付积分
        /// </summary>
        public int DayMaxSendPayCredits { get; set; }

        /// <summary>
        /// 每笔订单最大使用支付积分
        /// </summary>
        public int OrderMaxUsePayCredits { get; set; }

        /// <summary>
        /// 注册支付积分
        /// </summary>
        public int RegisterPayCredits { get; set; }

        /// <summary>
        /// 每天登录支付积分
        /// </summary>
        public int LoginPayCredits { get; set; }

        /// <summary>
        /// 验证邮箱支付积分
        /// </summary>
        public int VerifyEmailPayCredits { get; set; }

        /// <summary>
        /// 验证手机支付积分
        /// </summary>
        public int VerifyMobilePayCredits { get; set; }

        /// <summary>
        /// 完善用户信息支付积分
        /// </summary>
        public int CompleteUserInfoPayCredits { get; set; }

        /// <summary>
        /// 收货支付积分(以订单金额的百分比计算)
        /// </summary>
        public int ReceiveOrderPayCredits { get; set; }

        /// <summary>
        /// 评价商品支付积分
        /// </summary>
        public int ReviewProductPayCredits { get; set; }

        /// <summary>
        /// 等级积分名称
        /// </summary>
        public string RankCreditName { get; set; }

        /// <summary>
        /// 每天最大发放等级积分
        /// </summary>
        public int DayMaxSendRankCredits { get; set; }

        /// <summary>
        /// 注册等级积分
        /// </summary>
        public int RegisterRankCredits { get; set; }

        /// <summary>
        /// 每天登录等级积分
        /// </summary>
        public int LoginRankCredits { get; set; }

        /// <summary>
        /// 验证邮箱等级积分
        /// </summary>
        public int VerifyEmailRankCredits { get; set; }

        /// <summary>
        /// 验证手机等级积分
        /// </summary>
        public int VerifyMobileRankCredits { get; set; }

        /// <summary>
        /// 完善用户信息等级积分
        /// </summary>
        public int CompleteUserInfoRankCredits { get; set; }

        /// <summary>
        /// 收货等级积分(以订单金额的百分比计算)
        /// </summary>
        public int ReceiveOrderRankCredits { get; set; }

        /// <summary>
        /// 评价商品等级积分
        /// </summary>
        public int ReviewProductRankCredits { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public CreditConfigInfo()
        {
            StoreId = 0;
            PayCreditName = "金币";
            PayCreditPrice = 1;
            DayMaxSendPayCredits = 2000;
            OrderMaxUsePayCredits = 200;
            RegisterPayCredits = 2;
            LoginPayCredits = 2;
            VerifyEmailPayCredits = 2;
            VerifyMobilePayCredits = 2;
            CompleteUserInfoPayCredits = 2;
            ReceiveOrderPayCredits = 2;
            ReviewProductPayCredits = 2;
            RankCreditName = "成长值";
            DayMaxSendRankCredits = 200;
            RegisterRankCredits = 2;
            LoginRankCredits = 2;
            VerifyEmailRankCredits = 2;
            VerifyMobileRankCredits = 2;
            CompleteUserInfoRankCredits = 2;
            ReceiveOrderRankCredits = 50;
            ReviewProductRankCredits = 2;
        }
    }
}
